﻿
CREATE PROCEDURE [svc].[GetAllSessionLogsByReadsFilter]
(
	@FromDate				datetime,
	@ToDate					datetime, 
	@ReadsFilter				int
)
AS
BEGIN

SELECT Id, InstanceName, DatabaseName, Reads, Writes, LastModifiedDate FROM dbo.ExecSessionLog 
WHERE LastModifiedDate BETWEEN @FromDate AND @ToDate 
AND Reads > @ReadsFilter 
ORDER BY InstanceName

END